import '../../styles/shouye.scss'
import React,{useEffect,useState} from 'react';
import pic1 from '../../images/1.png'
import {data_list} from '../../utils/api'
import axios from 'axios'
import { RiseOutlined} from '@ant-design/icons';
import ShouYe from './Home/shouye'
interface Props{

}
interface MenuItem {
    item: object
    key: string
}
function Home(props:Props) {
    var [datalist,setDatalist] = useState([])
    useEffect(()=>{
        // data_list().then((res)=>{
        //     console.log(res);
            
        // })
        axios.get('/postsglltwo').then((res)=>{
            // console.log(res.data);
            setDatalist(res.data)
        })
        // console.log(typeof(localStorage.getItem('userinfo')))

    },[])
    return (
        <div className="Home" >
            <ShouYe></ShouYe>
        </div>
    );
}
interface Props{

}
export default Home;